using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ARS.Common.Helper;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;

namespace ARS.Web
{
    public class Program
    {
        internal static AppSetting appSetting = null;
        public static void Main(string[] args)
        {
            //        commonconfig = new ConfigurationBuilder().AddCommandLine(args).Build();
            //        var config = new ConfigurationBuilder()
            //.AddCommandLine(args)
            //.Build();
            Console.OutputEncoding = Encoding.UTF8;
            // Console.WriteLine($"string[] args={string.Join(' ', args)}");
            CreateHostBuilder(args).Build().Run();
        }

        public static IHostBuilder CreateHostBuilder(string[] args) =>
            Host.CreateDefaultBuilder(args)
            .ConfigureWebHostDefaults(webBuilder =>
                {
                    webBuilder.UseStartup<Startup>();
                });



    }
}
